import request from '@/api/request';
// 登录
export function login(data) {
	return request({
		url: '/user/na_login',
		method: 'post',
		data: data
	})
}
// 用户信息
export function getInfo(data) {
	return request({
		url: '/cloud360-web/user/currentUser',
		method: 'post',
		data: data
	})
}
// 获取验证码
export function getCode(data) {
	return request({
		url: '/cloud360-web/user/na_getResetPasswordCode',
		method: 'post',
		data: data
	})
}
// 重置密码
export function resetPw(data) {
	return request({
		url: '/cloud360-web/user/na_resetPassword',
		method: 'post',
		data: data
	})
}
// 绑定手机号
export function bindMobile(params) {
	return request({
		url: '/cloud360-web/user/bindingTelephone',
		method: 'get',
		params
	})
}
// 绑定/修改手机号码-获取验证码
export function changeMobile(params) {
	return request({
		url: '/cloud360-web/user/changePhone',
		method: 'get',
		params
	})
}
// 获取消息通知
export function getMessage(params) {
	return request({
		url: '/cloud360-web/msg/getMsg',
		method: 'get',
		params
	})
}
// 获取微信公众号地址
export function getWxUrl(params) {
	return request({
		url: '/cloud360-web/wx/getOauthUrl',
		method: 'get',
		params
	})
}
// 用户配置
export function userConf(data) {
	return request({
		url: '/cloud360-web/user/conf',
		method: 'post',
		data: data,
		isForm : true
	})
}